{% extends 'CHOMPSGIBundle:Seguridad:base.html.twig' %}
{% set active_page = "" %}
{% block subtitle %} Ver Permisos {% endblock %} 

{% block content %} 

	{{ parent() }}
	<div style="padding: 20px 0;">
		<a class="btn btn-success" href="{{ path("permiso_nuevo") }}">Crear Permiso</a>
	</div>
	
    <table class="table table-condensed listado">
        <tr>
            <th> Accion</th>
            <th> Objeto</th>
            <th> Campo</th>
            <th> Empresa </th>
        </tr>

		{% for perm in permis %}
	        <tr>
	            <td> {{ perm.accion }}</td>
	            <td> {{ perm.objeto }}</td>
	            <td> {{ perm.campo }}</td>
	            <td> {{ perm.nombreEmpresa }}</td>
	        </tr>
	    {% endfor %} 
    </table>

    <script>
        activarActionsTab('permisos');
    </script>
   
{% endblock %}
 